<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('定时任务详细')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	
	<form class="form-horizontal m-t" id="jobLogForm" th:if="${name == 'jobLog'}">
	    <div class="form-group">
			<label class="col-sm-3 control-label">日志序号：</label>
			<div class="form-control-static" th:text="${jobLog.id}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">任务名称：</label>
			<div class="form-control-static" th:text="${jobLog.jobName}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">instanceName：</label>
			<div class="form-control-static" th:text="${jobLog.instanceName}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">运行状态：</label>
			<div class="form-control-static" th:if="${jobLog.status == 'N'}">待运行</div>
			<div class="form-control-static" th:if="${jobLog.status == 'W'}">运行中</div>
			<div class="form-control-static" th:if="${jobLog.status == 'S'}">成功</div>
			<div class="form-control-static" th:if="${jobLog.status == 'F'}">失败</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">运行开始时间：</label>
			<div class="form-control-static" th:text="${jobLog.startDate}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">运行结束时间：</label>
			<div class="form-control-static" th:text="${jobLog.endDate}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">总共耗时(毫秒)：</label>
			<div class="form-control-static" th:text="${jobLog.executeTime}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">日志信息：</label>
			<div class="form-control-static" th:text="${jobLog.errorMsg}">
			</div>
		</div>
	</form>
	
	<form class="form-horizontal m-t" id="jobForm" th:if="${name == 'job'}">
	    <div class="form-group">
			<label class="col-sm-3 control-label">任务序号：</label>
			<div class="form-control-static" th:text="${job.id}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">任务名称：</label>
			<div class="form-control-static" th:text="${job.jobName}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">机器名称：</label>
			<div class="form-control-static" th:text="${job.instanceName}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">执行表达式：</label>
			<div class="form-control-static" th:text="${job.cron}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">是否正在执行：</label>
			<div class="form-control-static" th:class="${job.isRunning == '0' ? 'label label-primary' : 'label label-danger'}" th:text="${job.isRunning == '0' ? '正常' : '暂停'}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">是否可用：</label>
			<div class="form-control-static" th:class="${job.isValid == '0' ? 'label label-primary' : 'label label-danger'}" th:text="${job.isValid == '0' ? '正常' : '不可用'}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">运行状态：</label>
			<div class="form-control-static" th:if="${job.status == 'N'}">待运行</div>
			<div class="form-control-static" th:if="${job.status == 'W'}">运行中</div>
			<div class="form-control-static" th:if="${job.status == 'S'}">成功</div>
			<div class="form-control-static" th:if="${job.status == 'F'}">失败</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">创建时间：</label>
			<div class="form-control-static" th:text="${#dates.format(job.createdTime, 'yyyy-MM-dd HH:mm:ss')}">
			</div>
		</div>

	</form>
	
    </div>
</body>
</html>